﻿package com.zouloux.medias
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author ZoulouX
	 */
	public class MediaEvent extends Event 
	{
		public static const READY				:String = "ready";
		public static const PLAY				:String = "play";
		public static const STOP				:String = "stop";
		public static const BUFFER_FULL			:String = "bufferFull";
		public static const BUFFER_EMPTY		:String = "bufferEmpty";
		public static const NOT_FOUND			:String = "notFound";
		public static const SEEK				:String = "seek";
		public static const PAUSE				:String = "pause";
		public static const UNPAUSE				:String = "unpause";
		public static const CUE_POINT			:String = "cuePoint";
		public static const END					:String = "end";
		
		
		public var cuePointName					:String;
		public var cuePoint						:Object;
		public var time							:Number;
		
		
		public function MediaEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
		} 
		
		public override function clone():Event 
		{ 
			return new MediaEvent(type, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("MediaEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
	}
}